<?php 
	echo form_open('a_sy/save', array('id' => 'SaveAturSy')); 
?>
	<div class="row">
	
		<div class="col-md-12">
		<input type="hidden" name="id_m_th_ajaran" value="<?php foreach ($list_th as $row_th){echo $row_th->id_m_th_ajaran;};?>"/>					  
		
		<div class="input-group">
		<span class="input-group-addon group-addon-elba b-hijau-muda">Jenjang</span>
		<select name="id_m_j_pendidikan" class="form-control form-elba input-sm" <?php if(count($list_jp)<1){echo "disabled";}?>>
			<?php 
				if(count($list_jp)>0){
					foreach ($list_jp as $row_jp){ ?>
				<option value="<?php echo $row_jp->id_m_j_pendidikan; ?>"><?php echo $row_jp->j_pendidikan; ?></option>
			<?php 
					}
				}else{ 
			?>
				<option value="null">Tidak ada data</option>
			<?php
				}
			?>
		</select>
		<span class="input-group-addon group-addon-elba-tengah group-addon-elba b-hijau-muda ">Syahriyah</span>
		<input type="text" name="besar_sy" class="form-control form-elba input-sm clearable" placeholder="Besar Syahriyah" <?php if(count($list_jp)<1){echo "disabled";}?>/>
		</div>
		
		</div>
	</div><br/><br/>
	
	<span id="loadingAdd" style="display:none;">Sedang memproses..</span>
	<span id="errorAdd" style="display:none;color:red;">Ma'af, gagal menambahkan data</span>

	<span class="pull-right">
		<?php if(count($list_jp)>0){?>
		<button type="submit" id="saveButton" class="btn btn-xs tmb-utama"> Simpan</button> 
		<?php }?>
		<button class="btn tmb-kedua close-reveal-modal close-modal"> Batal</button>
	</span>

<?php 
	echo form_close();
?>	